import {get,post} from "@/utils/request"

export const findSubstitutions = (params) => post("api/carProduct/packageMiddleOrder/findSubstitution",params);

export const findPackageList =(sortId,search,) => get("/api/carProduct/package/findPackageList?sortId=" + sortId + "&search=" + search);

export const findServiceSortList = () => get("/api/carProduct/serviceSort/findServiceSortList");

//查询商品
export const findOrderList = () => get("/api/carProduct/carOrder/findOrderList");

export const findCoupon=()=>get("/api/carProduct/coupon/findCoupon");

export const findCouponUserList=(price)=>get("/api/carProduct/coupon/findCouponUserList?price="+price);

export const findOrderInfoList=(token)=>get("/api/carProduct/OrderInfo/findOrderInfoList/"+token);

export const StatusModification=(id)=>get("/api/carProduct/OrderInfo/StatusModification/"+id);

export const findSkuById=(id)=>get("/api/carProduct/carOrder/findSkuById/"+id)
